package com.rainwood.water_authority.http.response;

import com.google.gson.annotations.SerializedName;

/**
 * @author sxs
 * @date :2020/11/10
 * @desc: 更新信息
 */
public final class UpdateResponse {

    /**
     * code : 1
     * warn : success
     * data : {"id":"x4jsrmb5eplf","name":"APP版本","version":"2.36","forcedUpdat":"1","src":"https://www.yumukeji.cn/project/railway2/file/202011/x4jsrmb5eplf.","updateTime":"2020-11-10 18:31:25"}
     */
    @SerializedName("code")
    private int code;
    @SerializedName("warn")
    private String warn;
    @SerializedName("data")
    private DataDTO data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getWarn() {
        return warn;
    }

    public void setWarn(String warn) {
        this.warn = warn;
    }

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public static class DataDTO {
        /**
         * id : x4jsrmb5eplf
         * name : APP版本
         * version : 2.36
         * forcedUpdat : 1
         * src : https://www.yumukeji.cn/project/railway2/file/202011/x4jsrmb5eplf.
         * updateTime : 2020-11-10 18:31:25
         */
        @SerializedName("id")
        private String id;
        @SerializedName("name")
        private String name;
        @SerializedName("version")
        private Float version;
        @SerializedName("forcedUpdat")
        private String forcedUpdat;
        @SerializedName("src")
        private String src;
        @SerializedName("updateTime")
        private String updateTime;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Float getVersion() {
            return version;
        }

        public void setVersion(Float version) {
            this.version = version;
        }

        public String getForcedUpdat() {
            return forcedUpdat;
        }

        public void setForcedUpdat(String forcedUpdat) {
            this.forcedUpdat = forcedUpdat;
        }

        public String getSrc() {
            return src;
        }

        public void setSrc(String src) {
            this.src = src;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }
    }
}
